home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10452 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  909 b 

  1. Path: news.uh.edu!usenet
  2. From: BSamuel@uh.edu (Binoy K. Samuel)
  3. Newsgroups: comp.lang.c
  4. Subject: Why doesn't this compile?
  5. Date: 17 Mar 1996 06:48:41 GMT
  6. Organization: University of Houston
  7. Message-ID: <4igck9$idj@masala.cc.uh.edu>
  8. NNTP-Posting-Host: s258.hilton.uh.edu
  9. Mime-Version: 1.0
  10. X-Newsreader: WinVN 0.93.14
  11.  
  12. Hi:
  13.  
  14. I am taking a C class this semester.
  15.  
  16. And I have just written a program that runs (more or less) quite well.
  17.  
  18. However, when I try to compile it, I get the following error:
  19.     
  20.     "Call to function 'evalchar' with no prototype"
  21.  
  22. Why does this happen? 'Evalchar' is a function that I wrote.  What 
  23. prototype should I be looking for.
  24.  
  25. Here's the function header line:
  26.  
  27.     char evalchar(cnum)
  28.     int cnum;
  29.  
  30. I'm using Borland C++'s C compiler.
  31.  
  32. Please e-mail me if you can. This is the first time I'm writing to this 
  33. newsgroup: I don't usually look here that often.
  34.  
  35. Thank you.
  36.  
  37. Sincerely,
  38.  
  39. Binoy
  40.  
  41.  
  42.